s = eval(input('请输入任意小数：'))
n = eval('{:.0f}'.format(s))
if n-s <= 0:
    if s >= 0:
        print(n)
    else:
        print(n+1)
else:
    if s >= 0:
        print(n-1)
    else:
        print(n)
